var db = require('./dao/db');
var wx_auth = require('./utils/wx_auth');
//var configs = require(process.argv[2]);
var configs = require("./configs");
//console.info(configs);
//init db pool.
db.init(configs.mysql());

//innit wxinfo
wx_auth.init(configs.wx());

var config = configs.agent();
var as = require('./controller/agent_controller');
as.start(config);